//
//  BNAccountComponent.h
//  Banknote
//
//  Created by tanxiaokang on 2017/11/14.
//  Copyright © 2017年 runnongjinfu. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "MDFSingleton.h"

static NSInteger const BNConfigCenter_updataNone = 0;   //不用更新
static NSInteger const BNConfigCenter_updataWeak = 1;   //弱更
static NSInteger const BNConfigCenter_updataStrong = 2; //强更

#define BNAccount ([BNAccountComponent sharedInstance])

@interface BNAccountComponent : MDFSingleton

#pragma mark - UserAccountCenter
/// 用户ID
@property (nonatomic, copy) NSString *user_ID;
@property (nonatomic, copy) NSString *user_Phone;
@property (nonatomic, copy) NSString *user_Token;
@property (nonatomic, copy) NSString *user_IDCard;
@property (nonatomic, copy) NSString *user_TrueName;

@property (nonatomic, assign) BOOL isLogin;/**< 是否登录*/
@property (nonatomic, assign) BOOL user_NotReadMessage; /**< YES：有未读消息数*/

- (void)save_user;
- (void)clear_user;


#pragma mark - BNConfigCenter
///更新
@property (nonatomic, assign)NSInteger configUpdataType;
@property (nonatomic, copy) NSString *config_lastLoginPhoneNumber;
- (void)save_config;
- (void)clear_config;

#pragma mark - other
- (void)setUserInfo:(NSDictionary *)userData;
@end
